home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xaw / form.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  4.2 KB  |  127 lines

  1. /* $XConsortium: Form.h,v 1.22 89/07/21 01:51:26 kit Exp $ */
  2.  
  3.  
  4. /***********************************************************
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. #ifndef _XawForm_h
  29. #define _XawForm_h
  30.  
  31. #include <X11/Constraint.h>
  32.  
  33. /***********************************************************************
  34.  *
  35.  * Form Widget
  36.  *
  37.  ***********************************************************************/
  38.  
  39. /* Parameters:
  40.  
  41.  Name             Class        RepType        Default Value
  42.  ----             -----        -------        -------------
  43.  background         Background        Pixel        XtDefaultBackground
  44.  border             BorderColor    Pixel        XtDefaultForeground
  45.  borderWidth         BorderWidth    Dimension    1
  46.  defaultDistance     Thickness        int        4
  47.  destroyCallback     Callback        Pointer        NULL
  48.  height             Height        Dimension    computed at realize
  49.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  50.  sensitive         Sensitive        Boolean        True
  51.  width             Width        Dimension    computed at realize
  52.  x             Position        Position    0
  53.  y             Position        Position    0
  54.  
  55. */
  56.  
  57. /* Constraint parameters:
  58.  
  59.  Name             Class        RepType        Default Value
  60.  ----             -----        -------        -------------
  61.  bottom             Edge        XtEdgeType    XtRubber
  62.  fromHoriz         Widget        Widget        (left edge of form)
  63.  fromVert         Widget        Widget        (top of form)
  64.  horizDistance         Thickness        int        defaultDistance
  65.  left             Edge        XtEdgeType    XtRubber
  66.  resizable         Boolean        Boolean        False
  67.  right             Edge        XtEdgeType    XtRubber
  68.  top             Edge        XtEdgeType    XtRubber
  69.  vertDistance         Thickness        int        defaultDistance
  70.  
  71. */
  72.  
  73.  
  74.  
  75. #define XtNdefaultDistance "defaultDistance"
  76. #define XtNtop "top"
  77. #define XtNbottom "bottom"
  78. #define XtNleft "left"
  79. #define XtNright "right"
  80. #define XtNfromHoriz "fromHoriz"
  81. #define XtNfromVert "fromVert"
  82. #define XtNhorizDistance "horizDistance"
  83. #define XtNvertDistance "vertDistance"
  84. #define XtNresizable "resizable"
  85.  
  86. #define XtCEdge "Edge"
  87. #define XtCWidget "Widget"
  88.  
  89. #define XtRWidget "Widget"
  90.  
  91. #ifndef _XawEdgeType_e
  92. #define _XawEdgeType_e
  93. typedef enum _XtEdgeType { /* POHC 91/04/08 */
  94.     XtChainTop,            /* Keep this edge a constant distance from
  95.                    the top of the form */
  96.     XtChainBottom,        /* Keep this edge a constant distance from
  97.                    the bottom of the form */
  98.     XtChainLeft,        /* Keep this edge a constant distance from
  99.                    the left of the form */
  100.     XtChainRight,        /* Keep this edge a constant distance from
  101.                    the right of the form */
  102.     XtRubber            /* Keep this edge a proportional distance
  103.                    from the edges of the form*/
  104. } XtEdgeType;
  105. #endif /* _XawEdgeType_e */
  106.  
  107. typedef struct _FormClassRec    *FormWidgetClass;
  108. typedef struct _FormRec        *FormWidget;
  109.  
  110. extern WidgetClass formWidgetClass;
  111.  
  112. #ifdef XAW_BC
  113. /*************************************************************
  114.  * For Compatibility only.                                   */
  115.  
  116. #define XtFormDoLayout                XawFormDoLayout
  117.  
  118. /*************************************************************/
  119. #endif /* XAW_BC */
  120.  
  121. extern void XawFormDoLayout();    /* widget, doit */
  122.     /* Widget widget */
  123.     /* Boolean doit */
  124.  
  125. #endif /* _XawForm_h */
  126.  
  127.